package com.credithc.signature.common.mapper;

import com.credithc.baseserv.core.mapper.BsBaseMapper;
import com.credithc.signature.common.po.SealInfo;
import com.credithc.signature.common.ro.manager.SealInfoRo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SealInfoMapper extends BsBaseMapper<SealInfo> {

    SealInfo selectByIdNoAndSealName(@Param("idNo") String idNo, @Param("sealName") String sealName);

    List<SealInfo> selectByIdNoList(@Param("idNolist") List idNolist);

    List<SealInfo> selectBySealCodeList(@Param("sealCodeList") List sealCodeList);

    /**
     * 根据sealCode查询
     *
     * @param sealCode
     * @return
     */
    SealInfo selectBySealCode(String sealCode);

    /**
     * 查询所有
     *
     * @param sealInfoRo
     * @return
     */
    List<SealInfo> listByParamsAndPage(@Param("condition") SealInfoRo sealInfoRo);

    /**
     * 查询总数
     *
     * @param sealInfoRo
     * @return
     */
    int countByParamsAndPage(@Param("condition") SealInfoRo sealInfoRo);

    /**
     * 查询所有
     *
     * @return
     */
    List<SealInfo> listSealInfos();

}
